l = list(map(int, input().strip().split(' ')))
mn = min(l)
mx = max(l)
from math import gcd

g = gcd(mx, mn)
mn //= g
mx //= g
print(f"{mn}/{mx}")
